<?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
?>


<div class="modal-dialog ">
	<div class="modal-content">
		<div class="modal-header">
			<button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
			<h4 class="modal-title">个人详细信息</h4>
		</div>
		<div class="modal-body">
			<table class="table table-striped table-condenseda table-bordered">
				<tbody>
					<tr>
						<th width="25%">用户名</th>
						<td width="75%"><?= Html::encode($user['user_name']) ?></td>
					</tr>

					<tr>
						<th>Email</th>
						<td><?= Html::encode($user['user_email']) ?></td>
					</tr>
					<tr>

					<tr>
						<th>手机号码</th>
						<td><?= Html::encode($user['user_phone']) ?></td>
					</tr>
					
					<tr>
						<th>注册时间/IP</th>
						<td>
							<?= date("Y-m-d H:i:s",Html::encode($user['user_regtime'])) ?>/
							<?= Html::encode($user['user_regip']) ?>
						</td>
					</tr>

					<tr>
						<th>最近登录时间/IP</th>
						<td> 
							<?php echo date("Y-m-d H:i:s",Html::encode($user['user_lastlogin'])); ?>/
							<?= Html::encode($user['user_lastip']) ?>
						</td>
					</tr> 

					<tr>
						<th>性别</th>
						<td>
						<?php if($user['user_sex'] == "1"){
						echo "男性";
						}else if($user['user_sex'] == "2"){
						echo "女性";
						}else{
						echo "保密";
						}?></td>
					</tr>
					<tr>
						<th>地址</th>
						<td>北京</td>
					</tr>
				</tbody>
			</table>
			<hr>
		</div>
		<div class="modal-footer">  <button data-dismiss="modal" class="btn btn-primary" type="button">关闭</button>
		</div>
	</div>
</div>